import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
},{
  path: '/system',
  component: Layout,
  redirect: '/tenant_details',
  children: [{
    path: 'tenant_details',
    name: '租户详情',
    meta: {
      i18n: 'tenant_details'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/system/tenant/tenant_details')
  }]
},
{
  path: '/rpi_member_details',
  component: Layout,
  redirect: '/rpi_member_details',
  children: [{
    path: '/rb-core/rpiMemberOem/rpi_member_details',
    name: '商户会员详情',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/rb-core/rpiMemberOem/rpiMemberOemListDetails')
  }]
},
{
  path: '/store',
  component: Layout,
  redirect: '/store',
  children: [{
    path: '/rb-core/store/stock_storage',
    name: '库存入库',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/rb-core/store/stock_menu/stock_storage')
  },
  {
    path: '/rb-core/store/stock_allot',
    name: '库存调拨',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/rb-core/store/stock_menu/stock_allot')
  },
  {
    path: '/rb-core/store/stock_rebate',
    name: '库存回拨',
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/rb-core/store/stock_menu/stock_rebate')
  }]
},
{
  path: '/pos_info_details',
  component: Layout,
  redirect: '/pos_info_details',
  children: [
    {
      path: '/rb-core/merchant/pos_info_details',
      name: '商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-core/merchant/pos_info_details')
    },
    {
      path: '/rb-core/merchant/pos_info_reg_details',
      name: '商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-core/merchant/pos_info_reg_details')
    },
    {
      path: '/rb-core/merchant/pos_info_images_preview',
      name: '资质证件照预览',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-core/merchant/pos_info_menu/pos_info_images_preview')
    },
    {
      path: '/rb-core/merchant/pos_info_images',
      name: '资质证件照补充',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-core/merchant/pos_info_menu/pos_info_images')
    },
  ]
},
// {
//   path: '/rb-core',
//   component: Layout,
//   redirect: '/qrcode_details',
//   children: [{
//     path: 'qrcode_details',
//     name: '二维码详情',
//     meta: {
//       i18n: 'qrcode_details'
//     },
//     component: () =>
//       import( /* webpackChunkName: "views" */ '@/views/rb-core/qrcode/qrcode/qrcode_details')
//   }]
// },
 {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
}, {
  path: '/dict-horizontal',
  component: Layout,
  redirect: '/dict-horizontal/index',
  children: [{
    path: 'index',
    name: '字典管理',
    meta: {
      i18n: 'dict'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
  }]
}, {
  path: '/dict-vertical',
  component: Layout,
  redirect: '/dict-vertical/index',
  children: [{
    path: 'index',
    name: '字典管理',
    meta: {
      i18n: 'dict'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
  }]
}, {
  path: '/work/process/leave',
  component: Layout,
  redirect: '/work/process/leave/form',
  children: [{
    path: 'form/:processDefinitionId',
    name: '请假流程',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
  }, {
    path: 'handle/:taskId/:processInstanceId/:businessId',
    name: '处理请假流程',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
  }, {
    path: 'detail/:processInstanceId/:businessId',
    name: '请假流程详情',
    meta: {
      i18n: 'work'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
  }]
}, {
  path: '/workflow',
  component: Layout,
  children: [
    {
      path: 'design/process/:id',
      name: '流程设计',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design'),
    },
    {
      path: 'design/model/history/:id',
      name: '模型历史',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design/model-history'),
    },
    {
      path: 'design/form/history/:id',
      name: '表单历史',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design/form-history'),
    },
    {
      path: 'process/start/:params',
      name: '新建流程',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/process/components/form'),
    },
    {
      path: 'process/detail/:params',
      name: '流程详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/process/components/detail'),
    }
  ]
}, {
  path: '/deal_management_details',
  component: Layout,
  redirect: '/dealManagement/deal_management_details',
  children: [
    {
      path: 'deal_management_details',
      name: '交易详情',
      component: () => import( /* webpackChunkName: "views" */ '@/views/rb-core/dealManagement/deal_management_details')
    }
  ]
},
{
  path: '/oemprofit',
  component: Layout,
  redirect: '/oemprofit',
  children: [
    {
      path: 'profit_datail',
      name: '分润详情',
      component: () => import( /* webpackChunkName: "views" */ '@/views/rb-core/platformprofit/profit_datail')
    }
  ]
},
{
  path: '/invoiceMail',
  component: Layout,
  redirect: '/invoiceMail',
  children: [
    {
      path: 'invoice_mail_details',
      name: '发票详情',
      component: () => import('@/views/rb-core/invoiceMail/invoice_mail_details')
    }
  ]
}
]
